{extend name="common/base"}
{block name='title'}订单页面{/block}
{block name='body-type'}dingdan_index{/block}

{block name="content"}
        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">订单管理</div>
                            </div>
                            <div class="widget-body  am-fr">
                                <div class="am-u-sm-12">
                                    <table width="100%"  id="example-r" class="dingdan_table">
                                        <tbody>
                                            <tr style="background: #f1f1f1;color:black;">
                                                <!-- <td style="font-size: 14px;width:30%;text-align:center;">订单序号</td> -->
                                                <td style="font-size: 14px;width:30%;text-align:center;">宝贝</td>
                                                <td style="font-size: 14px;text-align:center;">单价</td>
                                                <td style="font-size: 14px;text-align:center;">数量</td>
                                                <td style="font-size: 14px;text-align:center;">总额</td>
                                                <td style="font-size: 14px;text-align:center;">是否发货</td>
                                                <td style="font-size: 14px;text-align:center;">是否确认收货</td>
                                            </tr>
                                        </tbody>
                                        {volist name="list" id="vo"  key="k"}
                                            <tbody style="font-size:13px;border:1px solid #666d70;margin-top:40px;">
                                                <tr>
                                                    <!-- <th>{$k}</th> -->
                                                    <th style="border:1px solid #666d70;padding-left:5px;">订单号：{$vo.zhifu_id} 
                                                            {eq name="vo.dingdan_beizhu" value=""}
                                                            <a href="{:url('admin/dingdan/add_beizhu')}?id={$vo.id}">添加备注</a>
                                                            {else/}
                                                            <a href="{:url('admin/dingdan/edit_beizhu')}?id={$vo.id}">修改备注</a>
                                                            {/eq}
                                                            </th>
                                                    <th style="border:1px solid #666d70;padding-left:5px;">日期：{$vo.dingdan_time}</th>
                                                    <th style="border:1px solid #666d70;padding-left:5px;">购买会员：{$vo.user_name}</th>
                                                    <th style="border:1px solid #666d70;padding-left:5px;">总额：¥{$vo.total_money}</th>
                                                    {eq name="vo['fahuo_status']" value="0"}
                                                    <th style="border:1px solid #666d70;text-align:center;">未发货
                                                        <a href="{:url('admin/dingdan/fahuo')}?id={$vo.id}&address_id={$vo.address_id}">去发货</a>
                                                    </th>
                                                    {else/}
                                                    <th style="border:1px solid #666d70;text-align:center;">已发货
                                                        <a href="{:url('admin/dingdan/wuliumore')}?id={$vo.id}&address_id={$vo.address_id}">查看物流</a>
                                                    </th>
                                                    {/eq}
                                                    <th style="border:1px solid #666d70;text-align:center;">
                                                    {eq name="vo['queren_status']" value="0"}
                                                    未确认收货
                                                    {else/}
                                                    已确认收货
                                                    {/eq}
                                                    </th>

                                                </tr>
                                            </tbody>
                                            
                                            <tbody style="font-size:10px;border:1px solid #666d70;width:100%;">

                                            {volist name="vo['son']" id="son"}
                                            <tr>
                                                <td style="border:1px solid #666d70;padding-left:5px;">
                                                    {$son.goods_name}<br>
                                                    
                                                    <br>
                                                    {$son.guige_name}:{$son.guigetype_name}&nbsp;
                                                    {present name="son.guige1_name"}
                                                    {$son.guige1_name}:
                                                    {else /}
                                                    {/present}
                                                    {present name="son.guigetype1_name"}
                                                    {$son.guigetype1_name}
                                                    {else /}
                                                    {/present}
                                                </td>
                                                <td style="border:1px solid #666d70;text-align:center;">¥{$son.price}</td>
                                                <td style="border:1px solid #666d70;text-align:center;">{$son.num}</td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                            </tr>
                                            
                                            {/volist}
                                            
                                            {eq name="vo.dingdan_beizhu" value=""}
                                             
                                            {else/}
                                            <tr>
                                             <td colspan="6" style="padding-left:5px;">备注:{$vo.dingdan_beizhu}</td>
                                            </tr>
                                            {/eq}
                                        </tbody>
                                        {/volist}
                                    </table>
                                        
                                    
                                    
                                    
                                </div>
                                <div class="am-u-lg-12 am-cf">
                                    <div class="am-fr" id="ajax-page">
                                        {$page}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {/block}
        {block name="footer-js"}
       
        {/block}
        <!-- <tr class="gradeX">
                <td style="font-size: 8px;">{$k}</td>
                <td style="font-size: 8px;">{$vo.dingdan_id}</td>
                <td style="font-size: 8px;">{$vo.dingdan_total}</td>
                <td style="font-size: 8px;">
                    
                    {eq name='$vo.fahuo_status' value="0"}
                    未发货 <a href="{:Url('admin/dingdan/fahuo')}?id={$vo.id}&address_id={$vo.address_id}">去发货</a>
                    {else/}
                    已发货 <a href="{:Url('admin/dingdan/wuliumore')}?id={$vo.id}&address_id={$vo.address_id}">查看物流</a>
                    {/eq}
                </td>
                <td style="font-size: 8px;">
                    {eq name='$vo.queren_status' value="0"}
                    未收货
                    {else/}
                    确认收货
                    {/eq}
                </td><br>
            </tr>           -->